import {createApp} from 'vue';
import App from './App.vue';
import router from './router';
import ElementPlus from 'element-plus';
import FCrud from '@/components/f-crud';
import 'element-plus/dist/index.css';
import * as ElIcons from '@element-plus/icons-vue';
import locale from 'element-plus/es/locale/lang/zh-cn';

const app = createApp(App);
app.use(router).use(ElementPlus, {locale}).mount('#app');
for (const name in ElIcons) {
  app.component(name, (ElIcons as any)[name]);
}
app.component(FCrud.name, FCrud);
